package com.coocaa.ops.plus.core.base.annotation;


import com.coocaa.ops.plus.core.base.enums.MyRoleEnums;

import java.lang.annotation.*;

/**
 * @author bijiahao
 * @date : 2018/1/19.
 * @description 扩展模块 权限注解
 *
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
@Documented
@Inherited
public @interface MyAuth {
    boolean validLogin() default true;

    boolean validAuth() default false;

    MyRoleEnums[] hasRoles() default MyRoleEnums.ROLE_USER;
}
